# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=csol
pkgver=1.5.0
pkgrel=0
pkgdesc="Small collection of solitaire/patience games to play in the terminal"
url="https://nielssp.dk/csol/"
arch="all"
license="MIT"
makedepends="cmake ncurses-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/nielssp/csol/archive/v$pkgver.tar.gz
	10-fix-ncurses.patch
	20-fix-doc-install.patch
	"
subpackages="$pkgname-doc"
options="!check" # no tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
d49f7f23caa116a1cec19ff17db93e41b9c3486e0494e6629d3ec1b307890de68d9c6fe80fe937b92b5dd9d6dcaf91cb4cf4167cc2fec447613426ca1ccb0c96  csol-1.5.0.tar.gz
2ad2b066bdd79413ea7a72482999fc9a47d6c3b07af753ab45ee07e8ed107dbf0b2ea7492ad60eaafcc69cbf78ff0ee75b84eac127823250c5513be0d10d1a74  10-fix-ncurses.patch
c56744be00f9ec253c305868accda020170dc6be75ce34ea6ff3cd5c9016b68e661aae796cf05ecafb185b3921bbd231bee97943f79f67a5d6cc305fe3576644  20-fix-doc-install.patch
"
